package com.example.stu1.login.service;

import com.example.stu1.login.dao.LoginMapper;
import com.example.stu1.login.pojo.Login;
import com.example.stu1.teacher.dao.TeacherMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class LoginService {
    @Resource
    private LoginMapper mapper;

    public Login query(String loginName) {
        return mapper.query(loginName);
    }

    public Login query2(Integer loginId) { return mapper.query2(loginId); }

    public Login get(Integer loginId) {
        return mapper.get(loginId);
    }

    public void update(Integer loginId,Integer Pw) {
        mapper.update(loginId,Pw);
    }

    public void add(Login login) { mapper.add(login); }
}
